import { EntitySchema } from '@mikro-orm/core';

export class LeEvaluateGoods {
  id!: string;
  goodsId!: string;
  createdTime: number = 0;
  updatedTime: number = 0;
  deletedTime: number = 0;
  isDeleted: boolean = false;
}

export const LeEvaluateGoodsSchema = new EntitySchema({
  class: LeEvaluateGoods,
  properties: {
    id: { primary: true, type: 'string', columnType: 'bigint' },
    goodsId: { type: 'string', columnType: 'bigint', index: 'goods_id' },
    createdTime: { type: 'number', default: 0 },
    updatedTime: { type: 'number', default: 0 },
    deletedTime: { type: 'number', default: 0 },
    isDeleted: { type: 'boolean', default: false },
  },
});
